package cn.demoncat.util.web.cloud.annotation;

import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.cloud.openfeign.EnableFeignClients;

import java.lang.annotation.*;

/**
 * SpringCloud启动类的注解
 * 
 * @author 延晓磊
 *
 * @since 2018年5月25日
 */
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Inherited
//spring-boot(AppConstant.scanBasePackages)
@SpringBootApplication(scanBasePackages = {"cn", "com"})
//spring-cloud-feign
@EnableFeignClients({ "cn.**.feign", "com.**.feign"})
//spring-cloud-hystrix
@EnableHystrix
//spring-cloud-eureka
@EnableDiscoveryClient
public @interface CloudApp {

	
}
